package com.zzq.test;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.extra.mail.MailAccount;
import cn.hutool.extra.mail.MailUtil;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {

        System.out.println("Hello World!");

        String host = "smtp.163.com";
        Integer port = 25;
        String from = "zhaoziqian0627@163.com";
        String user = "zhaoziqian0627@163.com";
        String pass = "s513477127";



        MailAccount account = new MailAccount();
        account.setHost(host);
        account.setPort(port);
        account.setAuth(true);
        account.setFrom(from);
        account.setUser(user);
        account.setPass(pass);

        MailUtil.send(account, CollUtil.newArrayList("513477127@qq.com"), "测试", "邮件来自zhaoziqian测试", false);
    }
}
